/// id : 26287423
/// title : "【淘鲜拾光】东海捕捞 原条多宝鱼250g-300g*2 袋"
/// origin : "中国"
/// cover : "http://img.jxhh.com/ewei_shopseller529961755266351896746349?imageMogr2/thumbnail/800x/strip/quality/75/format/jpg"
/// thirdBrandName : "暂无品牌"
/// salePrice : 7527
/// thirdCategoryName : "生鲜,海鲜水产,鱼类"
/// source : 1
/// marketPrice : 10800
/// status : 1
/// realSale : "1"
/// totalStock : 994
/// sale : 1
/// unit : "默认"
/// isFreeShipping : 1
/// goodsTag : null
/// groupIds : "1264421"
/// stock : 994

List<ProductInfoBean> getProductInfoBean(dynamic json) {
  List<ProductInfoBean> cityEntity = [];
  if (json != null) {
    json.forEach(
      (v) {
        cityEntity.add(ProductInfoBean.fromJson(v));
      },
    );
  }
  return cityEntity;
}

class ProductInfoBean {
  ProductInfoBean({
    this.id,
    this.title,
    this.origin,
    this.cover,
    this.thirdBrandName,
    this.salePrice,
    this.thirdCategoryName,
    this.source,
    this.marketPrice,
    this.status,
    this.realSale,
    this.totalStock,
    this.sale,
    this.unit,
    this.isFreeShipping,
    this.goodsTag,
    this.groupIds,
    this.stock,
  });

  ProductInfoBean.fromJson(dynamic json) {
    id = json['id'];
    title = json['title'];
    origin = json['origin'];
    cover = json['cover'];
    thirdBrandName = json['thirdBrandName'];
    salePrice = json['salePrice'];
    thirdCategoryName = json['thirdCategoryName'];
    source = json['source'];
    marketPrice = json['marketPrice'];
    status = json['status'];
    realSale = json['realSale'];
    totalStock = json['totalStock'];
    sale = json['sale'];
    unit = json['unit'];
    isFreeShipping = json['isFreeShipping'];
    goodsTag = json['goodsTag'];
    groupIds = json['groupIds'];
    stock = json['stock'];
  }

  num? id;
  String? title;
  String? origin;
  String? cover;
  String? thirdBrandName;
  num? salePrice;
  String? thirdCategoryName;
  num? source;
  num? marketPrice;
  num? status;
  String? realSale;
  num? totalStock;
  num? sale;
  String? unit;
  num? isFreeShipping;
  dynamic goodsTag;
  String? groupIds;
  num? stock;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = id;
    map['title'] = title;
    map['origin'] = origin;
    map['cover'] = cover;
    map['thirdBrandName'] = thirdBrandName;
    map['salePrice'] = salePrice;
    map['thirdCategoryName'] = thirdCategoryName;
    map['source'] = source;
    map['marketPrice'] = marketPrice;
    map['status'] = status;
    map['realSale'] = realSale;
    map['totalStock'] = totalStock;
    map['sale'] = sale;
    map['unit'] = unit;
    map['isFreeShipping'] = isFreeShipping;
    map['goodsTag'] = goodsTag;
    map['groupIds'] = groupIds;
    map['stock'] = stock;
    return map;
  }
}
